package brushQuestions.designpattern.factory;

import brushQuestions.designpattern.factory.simplefactory.TeaFactory;

/**
 * main方法类
 * @author: mengfanbing
 * @date: 2020/6/4 9:21
 */
public class MainClass {

    public static void main(String[] args) {
        Tea tea = TeaFactory.getInstance(FactoryConstant.BLUE_TEA);
        tea.print();

        Tea oolongTea = TeaFactory.getInstance(FactoryConstant.OOLONG_TEA);
        oolongTea.print();
    }
}
